package cn.itsource.config;

import cn.itsource.utils.NameUtil;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "admin.config")
@Data
public class AdminConfig {
    private String username = "admin";
    private String password = "123456";
    private String avatar = "https://up.enterdesk.com/edpic_source/7b/c3/59/7bc3593348c88d7627ebad998c387c07.jpg";
    private String nickName = NameUtil.getAdminName();
    private String name = "admin";
    private String roleSN = "admin";
}